import request from "@/common/request";
export const userInfo = () => request.get(`user`)
export const index = () => request.get(`index`)
export const schedules = (data) => request.get(`schedules`,data)
export const cinemas = (data) => request.get(`cinemas`,data)
export const hotmovie = (data) => request.get(`hotshows`,data)
export const soonmovie = (data) => request.get(`soonshows`,data)
export const movieInfo = (data) => request.get(`detailshows`,data)
export const seat = (data) => request.get(`seat`,data)
export const useragreement = () => request.get(`useragreement`)
export const cinemas_special = () => request.get(`cinemas_special`)
export const wxxcxLogin = (data) => request.post(`wechat/session_key`,data)
export const wxxcxUserInfo = (data) => request.post(`wechat/mp_auth`,data)
export const region = (data) => request.get(`region`,data)
export const grantphone = (data) => request.post(`bind_mobile`,data)
export const search = (data) => request.get(`searchShow`,data)

/******订单****/
export const orderCreate = (data) =>request.post(`order/create`,data)
export const orderConfirm = (data) =>request.get(`confirmorder`,data)
export const orderPay    = (data) =>request.post(`order/pay`,data)
export const orderList    = (data) =>request.get(`order/list`,data)
export const orderDelete    = (data) =>request.post(`order/del`,data)
export const orderCancel    = (data) =>request.post(`order/cancel`,data)
export const orderDetail    = (data) =>request.get(`order/detail/${data.orderId}`,data)
export const orderSale    = (data) =>request.post(`ordersale`,data)



